<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<input type="hidden" id="pageSize" name="pageSize" value="${page.pageSize}" />
<c:if test="${page.pageCount > 1}">
	<div class="pagination">
		<c:if test="${page.absPage eq 1}">
			<span class="firstPage">&nbsp;</span>
		</c:if>
		<c:if test="${page.absPage ne 1}">
			<a class="firstPage" href="javascript: $.pageSkip(1);">&nbsp;</a>
		</c:if>
		<c:if test="${page.absPage gt 1}">
			<a class="previousPage" href="javascript: $.pageSkip(${page.absPage + 1});">&nbsp;</a>
		</c:if>
		<c:if test="${page.absPage eq 1}">
			<span class="previousPage">&nbsp;</span>
		</c:if>
		<c:forEach begin="1" end="${page.pageCount}" var="obj" varStatus="status">
		    <c:if test="${status.index == 1 && obj > 2}">
		    	<span class="pageBreak">...</span>
		    </c:if>
		    <c:if test="${obj ne page.absPage}">
				<a href="javascript: $.pageSkip(${obj});">${obj}</a>
			</c:if>
		    <c:if test="${obj eq page.absPage}">
				<span class="currentPage">${obj}</span>
			</c:if>
			<c:if test="${obj eq page.pageCount && obj < page.pageCount - 1}">
				<span class="pageBreak">...</span>
			</c:if> 
		</c:forEach>
		<c:if test="${page.absPage lt page.pageCount}">
			<a class="nextPage" href="javascript: $.pageSkip(${page.absPage + 1});">&nbsp;</a>
		</c:if>
		<c:if test="${page.absPage eq page.pageCount}">
			<span class="nextPage">&nbsp;</span>
		</c:if>
		<c:if test="${page.absPage eq page.pageCount}">
			<span class="lastPage">&nbsp;</span>
		</c:if>
		<c:if test="${page.absPage lt page.pageCount}">
			<a class="lastPage" href="javascript: $.pageSkip(${page.pageCount});">&nbsp;</a>
		</c:if>
		<span class="pageSkip">
			共${page.pageCount}页 到第<input id="pageNumber" name="pageNumber" value="${page.absPage}" maxlength="4" onpaste="return false;" />页<button type="submit">&nbsp;</button>
		</span>
	</div>
</c:if>